All Functions Used So Far, Week 2

prop.test

{stats}

Test of Equal or Given Proportions

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

ordered

{dplyr}

Create an ordered factor

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

ifelse

{base}

Return a or b depending on the value of test

leveneTest

{car}

Computes Levene’s test for homogeneity of variance across groups.

library

{base}

Load an R package

mutate

{dplyr}

Modify/create a column in a data frame

with

{base}

evaluate expression in the context of a data frame

cut

{base}

Convert Numeric to Factor

setwd

{base}

Set Working Directory

c

{base}

Combine values/vectors into a vector

read_dta

{haven}

Read a .dta file (Stata data)

summary

{base}

Obtain summary statistics or detailed regression output

The end!